<!--

     Licensed to the Apache Software Foundation (ASF) under one
     or more contributor license agreements.  See the NOTICE file
     distributed with this work for additional information
     regarding copyright ownership.  The ASF licenses this file
     to you under the Apache License, Version 2.0 (the
     "License"); you may not use this file except in compliance
     with the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing,
     software distributed under the License is distributed on an
     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
     specific language governing permissions and limitations
     under the License.

-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- **************************************************************** -->
<!-- *  PLEASE KEEP COMPLICATED EXPRESSIONS OUT OF THESE TEMPLATES, * -->
<!-- *  i.e. only iterate & print data where possible. Thanks, Jez. * -->
<!-- **************************************************************** -->

<html>
<head>
    <!-- Generated by groovydoc (2.4.7) on Thu Dec 01 22:36:12 PST 2016 -->
    <title>ServiceFacade (Moqui Framework 2.0.0)</title>
    <meta name="date" content="2016-12-01">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="../../../groovy.ico" type="image/x-icon" rel="shortcut icon">
    <link href="../../../groovy.ico" type="image/x-icon" rel="icon">
    <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">

<body class="center">
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
    parent.document.title="ServiceFacade (Moqui Framework 2.0.0)";
}
//-->
</script>
<noscript>
    <div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
    <!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
    <!--   -->
</a>
    <ul class="navList" title="Navigation">
        <li><a href="../../../overview-summary.html">Overview</a></li>
        <li><a href="package-summary.html">Package</a></li>
        <li class="navBarCell1Rev">Class</li>
        <li><a href="../../../deprecated-list.html">Deprecated</a></li>
        <li><a href="../../../index-all.html">Index</a></li>
        <li><a href="../../../help-doc.html">Help</a></li>
    </ul>
</div>

<div class="subNav">
    <div>
        <ul class="navList">
            <li><a href="../../../index.html?org/moqui/service/ServiceFacade" target="_top">Frames</a></li>
            <li><a href="ServiceFacade.html" target="_top">No Frames</a></li>
        </ul>
    </div>
    <div>
        <ul class="subNavList">
            <li>Summary:&nbsp;</li>
            Nested&nbsp;&nbsp;&nbsp;Field&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#method_summary">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
        <ul class="subNavList">
            <li>&nbsp;|&nbsp;Detail:&nbsp;</li>
            Field&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#method_detail">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
    </div>
    <a name="skip-navbar_top">
        <!--   -->
    </a></div>
<!-- ========= END OF TOP NAVBAR ========= -->

<!-- ======== START OF CLASS DATA ======== -->
<div class="header">

    <div class="subTitle">Package: <strong>org.moqui.service</strong></div>

    <h2 title="[Java] Interface ServiceFacade" class="title">[Java] Interface ServiceFacade</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">

</ul>
<div class="description">
    <ul class="blockList">
        <li class="blockList">


    <p> ServiceFacade Interface </p>

          </li>
    </ul>
</div>

<div class="summary">
    <ul class="blockList">
        <li class="blockList">
        <!-- =========== NESTED CLASS SUMMARY =========== -->
        

        <!-- =========== ENUM CONSTANT SUMMARY =========== -->
        
        <!-- =========== FIELD SUMMARY =========== -->
        

        <!-- =========== PROPERTY SUMMARY =========== -->
        

        <!-- =========== ELEMENT SUMMARY =========== -->
        

        

        
        <!-- ========== METHOD SUMMARY =========== -->
        <ul class="blockList">
            
            <li class="blockList"><a name="method_summary"><!--   --></a>
                    <h3>Methods Summary</h3>
                    <ul class="blockList">
                    <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Methods Summary table">
                        <caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
                        <tr>
                            <th class="colFirst" scope="col">Type</th>
                            <th class="colLast" scope="col">Name and description</th>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='../../../org/moqui/service/ServiceCallAsync.html'>ServiceCallAsync</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#async()">async</a></strong>()</code><br>Get a service caller to call a service asynchronously.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>java.util.Map&lt;java.lang.String, java.lang.Object&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#callJsonRpc(java.lang.String, java.lang.String, Map<String, Object>)">callJsonRpc</a></strong>(java.lang.String location, java.lang.String method, java.util.Map&lt;java.lang.String, java.lang.Object&gt; parameters)</code><br>Call a JSON remote service. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='../../../org/moqui/service/ServiceCallJob.html'>ServiceCallJob</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#job(java.lang.String)">job</a></strong>(java.lang.String jobName)</code><br>Get a service caller to call a service job.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#registerCallback(java.lang.String, org.moqui.service.ServiceCallback)">registerCallback</a></strong>(java.lang.String serviceName, <a href='../../../org/moqui/service/ServiceCallback.html'>ServiceCallback</a> serviceCallback)</code><br>Register a callback listener on a specific service.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>org.moqui.util.RestClient</strong></code></td>
                            <td class="colLast"><code><strong><a href="#rest()">rest</a></strong>()</code><br>Get a RestClient instance to call remote REST services</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='../../../org/moqui/service/ServiceCallSpecial.html'>ServiceCallSpecial</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#special()">special</a></strong>()</code><br>Get a service caller for special service calls such as on commit and on rollback of current transaction.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='../../../org/moqui/service/ServiceCallSync.html'>ServiceCallSync</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#sync()">sync</a></strong>()</code><br>Get a service caller to call a service synchronously.</td>
                        </tr>
                        
                    </table>
                   </ul>
              </li>
            
        </ul>
        
    </li>
    </ul>
</div>

<div class="details">
    <ul class="blockList">
        <li class="blockList">
           

            

            

            

            


            
            <!-- =========== METHOD DETAIL =========== -->
            <ul class="blockList">
                <li class="blockList"><a name="method_detail">
                    <!--   -->
                </a>
                    <h3>Method Detail</h3>
                    
                        <a name="async()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='../../../org/moqui/service/ServiceCallAsync.html'>ServiceCallAsync</a> <strong>async</strong>()</h4>
                                <p> Get a service caller to call a service asynchronously. </p>
                            </li>
                        </ul>
                    
                        <a name="callJsonRpc(java.lang.String, java.lang.String, Map<String, Object>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.util.Map&lt;java.lang.String, java.lang.Object&gt; <strong>callJsonRpc</strong>(java.lang.String location, java.lang.String method, java.util.Map&lt;java.lang.String, java.lang.Object&gt; parameters)</h4>
                                <p> Call a JSON remote service. For Moqui services the location will be something like "http://hostname/rpc/json". </p>
                            </li>
                        </ul>
                    
                        <a name="job(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='../../../org/moqui/service/ServiceCallJob.html'>ServiceCallJob</a> <strong>job</strong>(java.lang.String jobName)</h4>
                                <p> Get a service caller to call a service job.
     <DL><DT><B>Parameters:</B></DT><DD><code>jobName</code> -  The name of the job. There must be a moqui.service.job.ServiceJob record for this jobName.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="registerCallback(java.lang.String, org.moqui.service.ServiceCallback)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>registerCallback</strong>(java.lang.String serviceName, <a href='../../../org/moqui/service/ServiceCallback.html'>ServiceCallback</a> serviceCallback)</h4>
                                <p> Register a callback listener on a specific service.
     <DL><DT><B>Parameters:</B></DT><DD><code>serviceName</code> -  Name of the service to run. The combined service name, like: "\${path}.\${verb}\${noun}". To
   explicitly separate the verb and noun put a hash (#) between them, like: "\${path}.\${verb}#\${noun}".</DD><DD><code>serviceCallback</code> -  The callback implementation.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="rest()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;org.moqui.util.RestClient <strong>rest</strong>()</h4>
                                <p> Get a RestClient instance to call remote REST services </p>
                            </li>
                        </ul>
                    
                        <a name="special()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='../../../org/moqui/service/ServiceCallSpecial.html'>ServiceCallSpecial</a> <strong>special</strong>()</h4>
                                <p> Get a service caller for special service calls such as on commit and on rollback of current transaction. </p>
                            </li>
                        </ul>
                    
                        <a name="sync()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='../../../org/moqui/service/ServiceCallSync.html'>ServiceCallSync</a> <strong>sync</strong>()</h4>
                                <p> Get a service caller to call a service synchronously. </p>
                            </li>
                        </ul>
                    
                </li>
            </ul>
            
        </li>
    </ul>
</div>

<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
    <!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
    <!--   -->
</a>
    <ul class="navList" title="Navigation">
        <li><a href="../../../overview-summary.html">Overview</a></li>
        <li><a href="package-summary.html">Package</a></li>
        <li class="navBarCell1Rev">Class</li>
        <li><a href="../../../deprecated-list.html">Deprecated</a></li>
        <li><a href="../../../index-all.html">Index</a></li>
        <li><a href="../../../help-doc.html">Help</a></li>
    </ul>
</div>

<div class="subNav">
    <div>
        <ul class="navList">
            <li><a href="../../../index.html?org/moqui/service/ServiceFacade" target="_top">Frames</a></li>
            <li><a href="ServiceFacade.html" target="_top">No Frames</a></li>
        </ul>
    </div>
    <div>
        <ul class="subNavList">
            <li>Summary:&nbsp;</li>
            Nested&nbsp;&nbsp;&nbsp;Field&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#method_summary">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
        <ul class="subNavList">
            <li>&nbsp;|&nbsp;Detail:&nbsp;</li>
            Field&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#method_detail">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
    </div>
    <p>Groovy Documentation</p>
    <a name="skip-navbar_bottom">
        <!--   -->
    </a>
    </div>
</div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
